package cn.tedu.myweb.mapper;

import cn.tedu.myweb.model.Room;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface RoomMapper extends BaseMapper<Room> {
    @Select("select id from room where user_id2=#{userId}")
    int findRoomIdByUserId(int userId);
}
